﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    if (Request.IsAuthenticated) {
%>
        <div id="login_info">
            <div id="login_form">
            Innskráður sem: <b><%: Html.ActionLink(Page.User.Identity.Name, "Index", "Profile")%></b>!
            [ <%: Html.ActionLink("Útskrá", "LogOff", "Account") %> ]
            </div>
        </div>
<%
    }
    else {
%> 
        <div id="login_info">
				<div id="login_form">
					<form action="/Account/LogOn" method="post">
						<input type="text" name="UserName" id="UserName" value="Notandi" onmousedown="document.getElementById('UserName').value = ''" />
						<input type="password" name="Password" id="Password" value="pass" onmousedown="document.getElementById('Password').value = ''" />
						<input type="submit" name="login_submit" value="Innskrá" />
					</form>
				</div>
                <div id="login_hjalp">
				    <input type="button" value="Nýskráning" onclick="document.location.href='/Account/DisplayTerms'" />
				    <!--<input type="button" value="Hjálp" onclick="document.location.href='/Account/Help'" />-->
                </div>
			</div>
<%
    }
%>